Using Sorting Filter filters

Sorting Filter either orders objects by their position on the z axis or groups them by their material type.

For example, use sorting filters to optimize the performance of your Kanzi application:

Creating a Sorting Filter

To create a sorting filter:

  1. In the Library press Alt and right-click Rendering > Object Sources and select Sorting Filter.

  2. In the Properties set:

To take the sorting filter into use:

  1. In the Library > Rendering > Render Passes create a Group Render Pass and inside it create:
  2. In the Library select the Draw Objects Render Pass you created and in the Properties set the Object Source property to the filter you created.
  3. In the Project select the Scene node to which you want to apply the filter and in the Properties set the Render Pass property to the Group Render Pass whose child Draw Objects Render Pass uses as its object source the filter you created.

    Kanzi Studio renders the nodes collected by the filter.

Using Sorting Filter filters in the API

For details, see the KzuSortObjectSource class in the API reference.

See also

Preventing overdraw with the Sorting Filter

Rendering transparent nodes

Reducing shader switches

Using Contains Property Filter filters

Using Property Is Equal Filter filters

Using Object Type Filter filters

Using Tag Filter filters

Filters